#include"ThreadPool.hpp"
#include"Task.hpp"
#include<memory>
using namespace ThreadPoolModule;
int main(){
    ENABLE_CONSOLO_LOG();
    std::unique_ptr<ThreadPool<task_t>> tp=std::make_unique<ThreadPool<task_t>>();
    tp->Start();
    int cnt=10;
    while(cnt--)
    {
        sleep(1);
        tp->Equeue(Push);
    }
    sleep(3);
    tp->Stop();
    tp->Wait();
}